*/
#define OSTREE_MAX_METADATA_WARN_SIZE (7 * 1024 * 1024)
-/**
- * OSTREE_MAX_RECURSION:
- *
- * Maximum depth of metadata.
- */
-#define OSTREE_MAX_RECURSION (256)
-
/**
* OSTREE_SHA256_DIGEST_LEN:
*
guchar csum[OSTREE_SHA256_DIGEST_LEN];
char *path;
OstreeObjectType objtype;
- guint recursion_depth;
+ guint recursion_depth; /* NB: not used anymore, though might be nice to print */
} ScanObjectQueueData;
static void start_fetch (OtPullData *pull_data, FetchObjectData *fetch);
GCancellable *cancellable,
GError **error)
{
- if (recursion_depth > OSTREE_MAX_RECURSION)
- return glnx_throw (error, "Exceeded maximum recursion");
-
g_autoptr(GVariant) tree = NULL;
if (!ostree_repo_load_variant (pull_data->repo, OSTREE_OBJECT_TYPE_DIR_TREE, checksum,
&tree, error))
gint depth;
gboolean is_partial;
- if (recursion_depth > OSTREE_MAX_RECURSION)
- {
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Exceeded maximum recursion");
- goto out;
- }
-
if (g_hash_table_lookup_extended (pull_data->commit_to_depth, checksum,
NULL, &depthp))
{